<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.flea.system.bean.PageInfoBean"%>
<!-- LoginBean -->
<jsp:useBean id="rsa" class="com.flea.system.bean.LoginBean"></jsp:useBean>
<jsp:setProperty property="pageContext" name="rsa"
	value="<%=pageContext%>" />
<%
	/* **************************** contextPath **************************** */
	// 获取contextPath
	String contextPath = ((HttpServletRequest) pageContext.getRequest()).getContextPath();
	// 将contextPath放入pageContext中
	pageContext.setAttribute("ctx", contextPath);
	/* **************************** pageInfo **************************** */

	PageInfoBean pageInfo = new PageInfoBean();
	// title
	String systemName = pageInfo.getSystemName();
	if (systemName == null || systemName.length() == 0)
		systemName = "Flea";
	pageContext.setAttribute("title", systemName);
	// theme
	String theme = pageInfo.getTheme();
	if (theme == null || theme.length() == 0)
		theme = "blue";
	pageContext.setAttribute("theme", theme);
	// copyright
	String copyright = pageInfo.getCopyright();
	if (copyright == null || copyright.length() == 0)
		copyright = "@Copyright Flea科技网络责任有限公司";
	pageContext.setAttribute("copyright", copyright);
%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<link rel="shortcut icon" href="${ctx }/favicon.ico">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<title>${title }</title>
<link rel="stylesheet"
	href="${ctx }/static/modules/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet"
	href="${ctx }/static/modules/Font-Awesome/css/font-awesome.min.css" />
<!-- guide css -->
<link rel="stylesheet"
	href="${ctx }/static/core/page/login/theme/default.css">
<!-- IE8响应式布局 兼容性js文件 -->
<!--[if lte IE 8]>
    <script src="${ctx }/static/modules/ace/assets/js/html5shiv.js"></script>
    <script src="${ctx }/static/modules/ace/assets/js/respond.min.js"></script>
    <![endif]-->
</head>

<body>
	<div class="login_main">
		<div class="login_wrap_right">
			<div class="logo mt46">Flea开发平台</div>
			<div class="motto mt90">${title }</div>
			<div class="login_content">
				<div class="title mt90">找回密码</div>
				<form id="pd_web_find_pwd_form">
					<div class="guide_item mt25">
						<div class="input_wrap">
							<label class="sr-only" for="pd_web_guide_name">用户名</label> <input
								id="pd_web_login_name" name="pd_web_login_name" class="input"
								placeholder="用户名" type="text" value="${rsa.user}"> <b
								class="icon icon_user"></b>
							<div class="error"></div>
						</div>
					</div>
					<div class="guide_item mt20">
						<div class="input_wrap">
							<label class="sr-only" for="pd_web_pwd">密保问题</label> <input
								id="pd_web_question" name="pd_web_question" class="input"
								placeholder="密保问题" type="text" value="${rsa.sPwd}"> <b
								class="icon icon_lock"></b>
							<div class="error"></div>
						</div>
					</div>
					<div class="guide_item mt20">
						<div class="input_wrap">
							<label class="sr-only" for="pd_web_pwd">答案</label> <input
								id="pd_web_answer" name="pd_web_answer" class="input"
								placeholder="答案" type="text" value="${rsa.sPwd}"> <b
								class="icon icon_lock"></b>
							<div class="error"></div>
						</div>
					</div>
					<div class="guide_item mt20">
						<div class="input_wrap">
							<label class="sr-only" for="pd_web_pwd">密码</label> <input
								id="pd_web_pwd" name="pd_web_pwd" class="input" placeholder="设置新密码"
								type="password" value="${rsa.sPwd}"> <b
								class="icon icon_lock"></b>
							<div class="error"></div>
						</div>
					</div>
					<div class="guide_item mt20">
						<div class="input_wrap mt20 clearFix">
							<a class="submit fr" href="javascript:;" id="pd_web_btn_submit">提&nbsp;交</a>
						</div>
					</div>
				</form>
			</div>
			<div class="login_registry">
				<a href="${ctx }/flea/hclv/guide/toLogin.htmls">登录</a> <a
					href="${ctx }/flea/hclv/guide/toRegistr.htmls">注册</a>
			</div>
			<div class="login_bottom">
				<span>${copyright }</span>
			</div>
		</div>
	</div>
	<!-- js -->
	<!-- requireJS -->
	<script src="${ctx }/static/modules/requirejs/require.js"
		type="text/javascript"></script>
	<!-- config.js -->
	<script type="text/javascript" src="${ctx }/static/global/config.js"></script>
	<!-- 全局js设置 -->
	<script type="text/javascript">
	//记录登录成功之后跳转的地址
	var redirectUrl = '<%=request.getParameter("redirectUrl")%>';
		//console.log(redirectUrl);
		var rsaKeyExponent = "${rsa.publicKeyExponent}";
		var rsaKeyModulus = "${rsa.publicKeyModulus}";
		//function p(){document.getElementById("pwd").value = "${rsa.sPwd}";
		//	};
		//	p();
		var console = console || {
			log : function() {
			}
		};
		function getServer() {
			var contextPath = '${ctx }';
			return contextPath;
		}
		function getStaticPath() {
			return getServer() + "/static";
		}
		function getCSRFToken() {
			var token = "${sessionScope.CSRFToken}";
			return token;
		}
		require.config({
			baseUrl : getServer() + "/",
			paths : {
				"jquery" : "static/modules/jquery/jquery.min"
			}
		})
	</script>

	<!-- jquery IE版本 -->
	<!--[if IE]>
	<script type="text/javascript">
	    require.config({
	    	paths:{
	    		"jquery":"static/modules/jquery/jquery1x.min"
	   		}
		});
	</script>
	<![endif]-->
	<!-- 程序入口 -->
	<script type="text/javascript"
		src="${ctx }/static/app/register/guidePwd/index.js">
		
	</script>
</body>
</html>